#!/bin/bash
export EXEC_BASH_PROFILE=`whoami`

[[ -f /usr/libexec/path_helper ]] && eval $(/usr/libexec/path_helper -s)
[[ -f /opt/homebrew/bin/brew ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
source ~/.bashrc

export SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"

export UNITY_APP=/Unity/Unity.app

export ANDROID_SDK=~/sdk/adk
export ANDROID_SDK_ROOT=$ANDROID_SDK
export ANDROID_HOME=$ANDROID_SDK

export NDKROOT=~/sdk/andk
export NDK_ROOT=$NDKROOT
export ANDROID_NDK_ROOT=$NDKROOT
export ANDROID_NDK_HOME=$ANDROID_NDK_ROOT
export ANDROID_NDK=$ANDROID_NDK_ROOT
export ANDROID_NDK_X86=$NDK_ROOT/toolchains/x86-4.9/prebuilt/darwin-x86_64
export ANDROID_NDK_ARM=$NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
export ANDROID_NDK_CLANG=$NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64

export COCOS_CONSOLE_ROOT=~/git-repo/mmd-cc/tools/cocos2d-console/bin
export PATH=$dotfiles_home:$COCOS_CONSOLE_ROOT:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$NDK_ROOT:$PATH:/usr/sbin
export PATH_DYNADD=$ANDROID_SDK_ROOT/emulator:$PATH_DYNADD
export PATH_DYNADD=$HOME/libimobiledevice-macosx:$PATH_DYNADD
export PATH_DYNADD=/Users/wellbye/repo/lib/chrome/depot_tools:$PATH_DYNADD
#export DYLD_LIBRARY_PATH=$HOME/libimobiledevice-macosx:$DYLD_LIBRARY_PATH
export PATH=$PATH_DYNADD:$PATH


STARTFGCOLOR='\e[0;34m';
STARTBGCOLOR="\e[32;47m"
ENDCOLOR="\e[0m"
export PS1="$STARTBGCOLOR[\u@\h:\w]$ENDCOLOR"
export PS1="[\u@\h:\w]"
source $dotfiles_home/bash_prompt
export LANG="en_US.UTF-8"
#export SSL_CERT_FILE=$dotfiles_home/cacert.pem

export HOMEBREW_GITHUB_API_TOKEN=ea7b1eb1cb71236c57334d4f25e82c0883982b6c


if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
    SESSION_TYPE=remote/ssh
    # many other tests omitted
else
    case $(ps o comm= -p $PPID) in
        sshd|*/sshd) SESSION_TYPE=remote/ssh;;
    esac
fi

[ -f ~/.ssh_auth ] && source ~/.ssh_auth

#export EMSDK_QUIET=1
#include "/Users/wellbye/sdk/emsdk/emsdk_env.sh"

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/wellbye/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/wellbye/miniforge3/etc/profile.d/conda.sh" ]; then
        . "/Users/wellbye/miniforge3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/wellbye/miniforge3/bin:$PATH"
    fi
fi
unset __conda_setup

if [ -f "/Users/wellbye/miniforge3/etc/profile.d/mamba.sh" ]; then
    . "/Users/wellbye/miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<


##
# Your previous /Users/wellbye/.bash_profile file was backed up as /Users/wellbye/.bash_profile.macports-saved_2023-10-17_at_11:17:33
##

# MacPorts Installer addition on 2023-10-17_at_11:17:33: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


# MacPorts Installer addition on 2023-10-17_at_11:17:33: adding an appropriate MANPATH variable for use with MacPorts.
#export MANPATH="/opt/local/share/man:$MANPATH"
# Finished adapting your MANPATH environment variable for use with MacPorts.

export PATH="/opt/homebrew/opt/bison/bin:$PATH"
